<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<c:set var="contextPath" value="${pageContext.request.contextPath}" />    

<!doctype html>
<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>우리학교</title>
	<link rel="stylesheet" href="${contextPath}/css/join.css" type="text/css" />
	<script type="text/javascript">  
		var contextPath = "${contextPath}";
	</script>
</head>
<body>

	<div id="wrap">
		
		<jsp:include page="common/top.jsp" />
		
		<div id="middle">
			<form:form commandName="joinCommand">
				<dl id="joinForm">
					<dt id="joinTitle">가입하기</dt>
					<dd id="joinValue">
						<dl>
							<dt>이름/별명</dt>
							<dd><form:input path="name" maxlength="12" /></dd>
							<dd class="error"><form:errors path="name" /></dd>
						</dl>
						<dl>
							<dt>이메일 주소</dt>
							<dd><form:input path="email" maxlength="100" /></dd>
							<dd class="error"><form:errors path="email" /></dd>
						</dl>
						<dl>
							<dt>이메일 주소 다시 입력</dt>
							<dd><form:input path="emailConfirm" maxlength="100" /></dd>
							<dd class="error"><form:errors path="emailConfirm" /></dd>
						</dl>
						<dl>
							<dt>비밀번호</dt>
							<dd><form:password path="password" maxlength="15" /></dd>
							<dd class="error"><form:errors path="password" /></dd>
						</dl>
						<dl>
							<dt>비밀번호 다시 입력</dt>
							<dd><form:password path="passwordConfirm" maxlength="15" /></dd>
							<dd class="error"><form:errors path="passwordConfirm" /></dd>
						</dl>
						<dl>
							<dt>학교 입력</dt>
							<dd><form:input path="university" maxlength="20" /></dd>
							<dd class="error"><form:errors path="university" /></dd>
						</dl>
					</dd> 
					<dd id="text">
						이메일 주소는 로그인 아이디로 사용되며 가입하기를 누르면
						<a href="${contextPath}/terms_conditions.html">이용약관</a>을 읽고 이해한다는 점에 동의하게 됩니다.
					</dd>
					<dd id="joinBtArea">
						<input type="submit" id="joinBt" class="submit" name="joinBt" value="가입하기" />
					</dd>
				</dl> 
			
			</form:form>
			
		</div>
		
		<jsp:include page="common/bottom.jsp" />		
				  
	</div>
	
</body>
</html>  